Package org.apache.juneau.console.views
Class FileLineIndex.Builder
java.lang.Object
org.apache.juneau.console.views.FileLineIndex.Builder
- Enclosing class:
- FileLineIndex
Builder for
FileLineIndex.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the index.maxEntries(int value) Sets the maximum number of index entries.stride(int value) Sets the initial lines per index entry.
-
Method Details
-
stride
Sets the initial lines per index entry.- Parameters:
value- At least 1.- Returns:
- This object.
-
maxEntries
Sets the maximum number of index entries.- Parameters:
value- At least 2.- Returns:
- This object.
-
build
Builds the index. No I/O happens untilFileLineIndex.refresh().- Returns:
- A new index.
-